package com.yyq.demo.excelDemo;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

/**
 * @author yyq
 * @create 2021-04-14 17:06
 */
public class easyExcelListener extends AnalysisEventListener<excelData> {
    //一行一行输出
    @Override
    public void invoke(excelData excelData, AnalysisContext analysisContext) {
        System.out.println("****"+excelData);

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println("表头："+headMap);
    }
}
